extend activity_layout
block page
	h1.page-header 活动列表
		.pull-right.btn-group
			a.btn.btn-default(href="#/activity/new") 添加
			a.btn.btn-default(href="/main/index#activity",target="_blank") 预览

	table.table.table-striped.table-hover
		thead
			th 活动名称
			th 报名人数
			th 活动开始时间
			th 活动结束时间
			th 状态
		tr.pointer(ng-repeat="activity in activityList",ng-click="detailView(activity)")
			th {{activity.name}}
			th {{activity.sign_count}}
			th {{activity.start_time | date: 'yyyy-MM-dd'}}
			th {{activity.end_time | date: 'yyyy-MM-dd'}}
			th 
				label.label(class="label-{{ACTIVITY_STATUS[activity.status].color}}") {{ACTIVITY_STATUS[activity.status].text}}
